<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% String path = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath(); %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="<%=path %>/css/listVip.css">
</head>
<body>
	<table>
	<!-- 表头 -->
		<thead>
		<tr>
			<td>行号</td>
			<td>商品编号</td>
			<td>商品名称</td>
			<td>商品成本</td>
			<td>商品售价</td>
			<td>商品类别</td>
			<td>商品库存</td>
		</tr>
		</thead>
	<!-- 表身体 -->
		<tbody>
		<c:forEach items="${listInventory}" var="inventory" varStatus="status">
			<tr>
			<td <c:if test="${status.index % 2 == 0}">class="one"</c:if>
					<c:if test="${status.index % 2 != 0}">class="two"</c:if>>${status.index + 1 }</td>
			<td>${inventory.production_Id }</td>
			<td>${inventory.production_Name }</td>
			<td>${inventory.production_Cost }</td>
			<td>${inventory.production_Price }</td>
			<td>${inventory.production_Type }</td>
			<td>${inventory.production_Num }</td>
			</tr>
		</c:forEach>
		
		</tbody>
	
	
	</table>
</body>
</html>